for b in range(1,10):
    for a in range(1,b+1):
        print('%d*%d=%d\t'%(a,b,a*b),end='')
    print('')
print('')
for c in range(-9,0):
    for d in range(1,-c+1):
        print('%d*%d=%d\t'%(d,-c,-c*d),end='')
    print('')

